<template>
  <div>
    <div class="card">
      <div class="ing">
        <img :src="`http://liufusong.top:8080${item.houseImg}`" alt="" />
      </div>
      <div class="cat">
        <h5>{{ item.title }}</h5>
        <p class="it">{{ item.desc }}</p>
        <div class="box">{{ item.tags[0] }}</div>
        <p class="myone">{{ item.price }} <span>元/月</span></p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "card-page",
  components: {},
  props: {
    item: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>
<style scoped lang="less">
.card {
  display: flex;
  position: relative;
  padding-top: 18px;
  height: 100px;
  left: 0px;
  top: 0px;
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
  .ing {
    width: 106px;
    height: 80px;
    img {
      width: 106px;
      height: 80px;
    }
  }
  .cat {
    height: 120px;
    padding-left: 12px;
    h5 {
      font-size: 16px;
      margin: 0px 0 0;
    }
    p {
      font-size: 14px;
      margin: 5px 0 0;
      color: #ccc;
    }
    .box {
      background-color: red;
      width: 40px;
      height: 15px;
      font-size: 12px;
      padding: 2px 2px;
      border-radius: 5px;
      text-align: center;
      margin-top: 3px;
    }
    .myone {
      font-size: 18px;
      color: red;
      span {
        font-size: 14px;
      }
    }
  }
}
</style>
